package com.itheima.sh.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: 飞羽鸿蒙
 * @date: 2020/12/21 20:30
 */
@Data
@Component // 初始化时加载到OIC容器中
@ConfigurationProperties(prefix = "test.redis")
public class RedisProperties {

    private String host;
    private int port;

}
